package com.wl.api.filter;

import org.springframework.stereotype.Service;

@Service
public class CacheServiceImpl {

    //这里的单引号不能少，否则会报错，被识别是一个对象;

    public static final String CACHE_KEY = "'userInfo'";
    /**

     * value属性表示使用哪个缓存策略，缓存策略在ehcache.xml

    */
    public static final String DEMO_CACHE_NAME = "users";
   
    /*@CacheEvict(value=DEMO_CACHE_NAME,key=CACHE_KEY)
    public UserDTO createCache(UserDTO user) {
    	return user;
    }*/
}
